<?php /* Smarty version 2.6.18, created on 2016-12-08 16:40:52
         compiled from teaching/plan.list.tpl.php */ ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "index.header.tpl.php", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "index.left.tpl.php", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<!--左侧导航结束-->
        <style>
		@media only screen and (max-width: 760px),(min-device-width: 768px) and (max-device-width:1024px)  {
		#mytable, #mytable thead, #mytable tbody, #mytable th, #mytable td, #mytable tr { 
			display: block; 
		}
		#mytable thead tr { 
			position: absolute;
			top: -9999px;
			left: -9999px;
		}
		#mytable td { 
			border: none;
			border-bottom: 1px solid #eee; 
			position: relative;
			padding-left:44% !important; 
			padding-top:10px ;
		}
	    #mytable tr{ margin-bottom:20px;}
		#mytable td:before { 
			position: absolute;
			top:10px;
			left:8px;
			width: 45%; 
			padding-right:10px;
			white-space: nowrap;
		}
		    #mytable td:nth-of-type(1):before { content: "年级"; }
			#mytable td:nth-of-type(2):before { content: "学科"; }
			#mytable td:nth-of-type(3):before { content: "标题"; }
			#mytable td:nth-of-type(4):before { content: "提交者"; }
			#mytable td:nth-of-type(5):before { content: "提交日期"; }
			#mytable td:nth-of-type(6):before { content: "操作"; }
        }		
	</style>
  <!--主要内容开始-->
  <div class="content-wrapper">
    <section class="content">
      <div class="row">
        <section class="col-lg-12 connectedSortable">
         <div class="box box-default box-solid">
             <form name="myform" action="" method="get">	
                <div class="box-header with-border">
                    <span class="fa fa-pencil" style="float:left; font-size:18px; padding-top:3px; color:#3c8dbc;" ></span>
                    <p class="box-title"><?php echo $this->_tpl_vars['manage_name']; ?>
</p>
					<a href="index.php?a=teaching.planadd&manage_type=<?php echo $this->_tpl_vars['manage_type']; ?>
" class="btn btn-primary btn-sm" style="float:right;">新 增</a>
                </div>
                <div class="box-body">
                      <div class="col-md-3 form-group" style="padding:0;">
						  <label for="inputPassword3" class="col-sm-3 control-label" style="padding-right:0; padding-left:0; font-weight:500;">
							   年级：
						  </label>
						  <div class="input-group col-md-9 col-xs-12">
							   <select class="form-control" name="grade_id" >
							   <option value="">全部</option>
							   <?php $_from = $this->_tpl_vars['grade_lists']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['value']):
?>
									<option value="<?php echo $this->_tpl_vars['value']['grade_id']; ?>
"<?php if ($this->_tpl_vars['value']['grade_id'] == $this->_tpl_vars['grade_id']): ?>selected<?php endif; ?>><?php echo $this->_tpl_vars['value']['grade_name']; ?>
</option>
							   <?php endforeach; endif; unset($_from); ?>
                                </select>
						  </div> 
				    </div>
					<div class="col-md-3 form-group" style="padding:0;">
						  <label for="inputPassword3" class="col-sm-3 control-label text-right" style="padding-right:0; padding-left:0; font-weight:500; margin:0;">
							   学科：
						  </label>
						  <div class="input-group col-md-9 col-xs-12">
							   <select class="form-control" name="subject_id">
									  <option value="">全部</option>
									  <?php $_from = $this->_tpl_vars['subject_lists']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['value']):
?>
										<option value="<?php echo $this->_tpl_vars['value']['subject_id']; ?>
"<?php if ($this->_tpl_vars['value']['subject_id'] == $this->_tpl_vars['subject_id']): ?>selected<?php endif; ?>><?php echo $this->_tpl_vars['value']['subject_name']; ?>
</option>
									  <?php endforeach; endif; unset($_from); ?>
                                </select>
						  </div> 
				    </div>
					<div class="col-md-5 col-xs-12 form-group" style="padding:0;">
						  <label for="inputPassword3" class="col-sm-2 control-label text-right" style="padding-right:0; padding-left:0; font-weight:500; ">
							   时间：
						  </label>
						  <div class="input-group col-md-4" style="float:left;">
							   <input type="text" class="form-control"  id="from" name="from" value="<?php echo $this->_tpl_vars['from']; ?>
">
							     <div class="input-group-addon" style="padding:6px 7px;" >
									<i class="fa fa-calendar"></i>
						  </div>
						  </div>
						  <span style="float:left;">  ~  </span >
						  <div class="input-group col-md-4" style="float:left;">
							   <input type="text" class="form-control"  id="to" name="to" value="<?php echo $this->_tpl_vars['to']; ?>
">
							      <div class="input-group-addon" style="padding:6px 7px;" >
									 <i class="fa fa-calendar"></i>
								 </div>
						  </div>						  
				    </div>
					<div class="col-md-1 col-xs-12">
					   <input type="hidden" name="manage_type" value="<?php echo $this->_tpl_vars['manage_type']; ?>
">
					   <input type="hidden" name="a" value="teaching.planlist">
					   <button type="submit" class="btn btn-warning">查 询</button>
					</div>
					<div style="clear:both; height:10px;"></div>
					 </form>
                     <table class="table table-bordered table-striped" id="mytable">
                                <thead>
                                    <tr style="background-color:#fcb53f;">
									    <td>年级</td>
                                        <td>学科</td>
                                        <td>标题</td>
                                        <td>提交者</td>
										<td>提交日期</td>
										<td width="130">操作</td>
                                    </tr>	
                                </thead>
                                <tbody>
								<?php $_from = $this->_tpl_vars['manage_lists']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['value']):
?>
                                    <tr>
									    <td><?php echo $this->_tpl_vars['value']['grade_name']; ?>
</td>
                                        <td><?php echo $this->_tpl_vars['value']['subject_name']; ?>
</td>
                                        <td><a href="index.php?a=teaching.details&manage_id=<?php echo $this->_tpl_vars['value']['manage_id']; ?>
&manage_type=<?php echo $this->_tpl_vars['manage_type']; ?>
" ><?php echo $this->_tpl_vars['value']['manage_title']; ?>
</a></td>
                                        <td><?php echo $this->_tpl_vars['value']['user_name']; ?>
</td>
										<td><?php echo $this->_tpl_vars['value']['create_time']; ?>
</td>
                                        <td>
                                        	  <a href="index.php?a=teaching.planupdate&manage_type=<?php echo $this->_tpl_vars['manage_type']; ?>
&manage_id=<?php echo $this->_tpl_vars['value']['manage_id']; ?>
" class="btn btn-warning btn-sm"  title="修改"> <i class="fa fa-edit (alias)"></i></a>
											  <a href="index.php?a=teaching.plandel&manage_id=<?php echo $this->_tpl_vars['value']['manage_id']; ?>
&manage_type=<?php echo $this->_tpl_vars['manage_type']; ?>
" onclick="if(confirm('警告！确认删除信息?')==false)return false;"class="btn btn-danger btn-sm"  title="删除"> <i class="fa fa-trash"></i></a>
                                        </td>
                                    </tr>
									<?php endforeach; endif; unset($_from); ?>                                   
                            </tbody>
                        </table>
				   </div><!--box-body -->

			   <div class="box-footer" style="border-top:0px;">
					<?php echo $this->_tpl_vars['page']; ?>

			   </div>
           </div><!--box box-default box-solid-->
        </section>   
           
        </div><!--row-->
    </section>
 </div>
  <!--主要内容结束-->
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "index.footer.tpl.php", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<script>
  $(function() {
    $( "#from" ).datepicker({
      defaultDate: "+1w",
      changeMonth: true,
	  changeYear: true,
      numberOfMonths:1,
      onClose: function( selectedDate ) {
        $( "#to" ).datepicker( "option", "minDate", selectedDate );
      }
    });
    $( "#to" ).datepicker({
      defaultDate: "+1w",
      changeMonth: true,
      changeYear: true,
      numberOfMonths:1,
      onClose: function( selectedDate ) {
        $( "#from" ).datepicker( "option", "maxDate", selectedDate );
      }
    });
  });
</script>